package com.ytjj.qmyx.mall.enums;

import lombok.Getter;

@Getter
public enum BankerNameEnums {

    YX("0","严选"),
    GW("1","官网"),;
    String bankerType;
    String bankerName;
    BankerNameEnums(String bankerType ,String bankerName){
        this.bankerType = bankerType;
        this.bankerName = bankerName;
    }

    public static String getName(String type,String name) {
        for (BankerNameEnums bankerNameEnums : BankerNameEnums.values()) {
            if (bankerNameEnums.getBankerType().equals(type)) {
                return name + bankerNameEnums.getBankerName();
            }
        }
        return name;
    }

}
